Skip to content

ci: pass -tags sqlite_fts5 to go test and release binary builds#3

Merged
aksOps merged 1 commit into
mainfrom
ci/sqlite-fts5-tag
Apr 26, 2026
Merged

ci: pass -tags sqlite_fts5 to go test and release binary builds#3
aksOps merged 1 commit into
mainfrom
ci/sqlite-fts5-tag

Conversation

@aksOps

@aksOps aksOps commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Fast-follow to PR #2. With UI build now in place, the post-merge release run made it past `make ui` and then failed with ~25 `schema DDL: no such module: fts5` errors in `internal/serve/store` and `internal/serve`.

`mattn/go-sqlite3` only compiles FTS5 support when the `sqlite_fts5` build tag is set. `internal/serve/store`'s schema uses `CREATE VIRTUAL TABLE … USING fts5(…)` — without the tag, `OpenCostStore()` fails at runtime.

Two `release.yml` steps were missing the tag:

  • `Run tests`: now `go test -tags sqlite_fts5 ./...`
  • Cross-compile binary loop: now `go build -trimpath -tags sqlite_fts5 …`

Released-binary impact

v0.1.0 and v0.1.1 (last successful releases) were built without `-tags sqlite_fts5`. Those binaries panic at boot inside `OpenCostStore` — anyone who downloaded them and ran `ctm serve` would have hit it. Once this lands, the next tagged release is the first usable one since the FTS5 feature shipped.

Test plan

🤖 Generated with Claude Code

mattn/go-sqlite3 only compiles FTS5 support when the sqlite_fts5 build
tag is set. internal/serve/store's schema uses
  CREATE VIRTUAL TABLE … USING fts5(…)
which fails at runtime with "no such module: fts5" without the tag.

The release-on-main run that followed the UI-build fix (24950003140)
made it past `make ui` and then blew up on ~25 store/serve tests with
this error. Two release.yml steps were missing the tag:

- "Run tests"        → go test -tags sqlite_fts5 ./...
- cross-compile loop → go build -trimpath -tags sqlite_fts5 …

Side note: v0.1.0 / v0.1.1 binaries (last successful releases) were
built without this tag, so they panic in OpenCostStore on first boot.
Once this lands, the next release tag will be the first usable one
since the FTS5 feature shipped.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aksOps aksOps merged commit a01f234 into main Apr 26, 2026
8 checks passed
@aksOps aksOps deleted the ci/sqlite-fts5-tag branch April 26, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant